package com.swallow.auth.infrastructure.acl.auth;

import com.swallow.auth.common.utils.GsonUtil;
import com.swallow.auth.domain.auth.repository.gateway.IAuthGateway;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author: 18310740596@163.com
 * @date: 2024-05-11 00:53:37
 * @version: v1.0
 * @describe: class responsibility
 */
@Slf4j
@Service
public class AuthGatewayImpl implements IAuthGateway {

    @Override
    public void sendCaptcha(String mobile, String templateCode, Map<String, Object> params) {
        log.info("调用第三方发送短信::: 手机号:{}, 短信模板:{}, 模板参数:{}", mobile, templateCode, GsonUtil.toJson(params));
        // todo 调用第三方发送短信

    }
}
